<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%-- JSTL表达式（判断，循环，输出） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%-- 方法表达式（字符串截取，替换） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:forEach var="activity" items="${activitys}">
<li class="transition text-center">
    <a href="<%=basePath%>activity/getActivityDetails/${activity.activityId}">
        <div class="pic-box">
            <img class="transition" src="${activity.activityPic}">
            <div class="bg-title transition">
                查看
            </div>
        </div>
    </a>
    <div class="title">
        <div class="name">${activity.activityName}</div>
        <div class="price">￥${activity.activityPrice}</div>
    </div>
</li>
</c:forEach>